package com.dy.springbootstudy.second_chapter_web.entity;

import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-02-26
 * @Content  定义taco配料
 */
@Data
@RequiredArgsConstructor//生成带有必需参数的构造函数。 必需的参数是最终字段和具有约束的字段
public class Ingredient {
    private final String id;
    private final String name;
    private final Type type;
    public enum Type {
        WRAP, PROTEIN, VEGGIES, CHEESE, SAUCE
    }
}
